<%--
  Created by IntelliJ IDEA.
  User: 林龙
  Date: 2024/12/17
  Time: 上午7:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    // 假设你有一个方法来获取新闻和天气信息
    String news = "今日新闻：新游戏发布，玩家热议！"; // 示例新闻
    String weather = "今日天气：晴，气温25°C。"; // 示例天气

    // 输出新闻和天气内容
%>
<div>
    <h3>新闻</h3>
    <p><%= news %></p>
    <h3>天气</h3>
    <p><%= weather %></p>
</div>